import { MutationTree } from "vuex"

import { UserConstant } from "./constant"
import { UserState } from "./state"


export type Mutations<S = UserState> = {
  [UserConstant.MUTATION_LOGIN_OUT](state: S,user: any):void
}

export const mutations:Mutations & MutationTree<UserState> = {
  [UserConstant.MUTATION_LOGIN_OUT](state:UserState,user: any){
    state.avatar = user.avatar
    
  }
}